<?php
//CONFIGURATION SITE
require_once("configuration/config.php");
//Récupération de l'ip d'un visiteur
$ip = $_SERVER['REMOTE_ADDR'];
//Date du moment 
$date = date("j-m-y, H:i:s");
?>
<h1 style="margin:auto;color: red; font-size: 100px;">
    Test
</h1>
<?php
//On stock l'ip en bdd
$rq = "INSERT INTO `test_ip` (ip, date) VALUES ('".securite::bdd($ip)."', '".securite::bdd($date)."')";
$result = $GLOBALS['bdd']->query($rq);
?>
